﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="DelegateRepresentativeAuthority.aspx.cs" Inherits="PresentationLayer.View.DepartmentManager.DelegateRepresentativeAuthority" %>
<%@ Register src="headmenu.ascx" tagname="headmenu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <style type="text/css">
        .style9
        {
            width: 500px;
        }
        .style11
        {
            width: 649px;
            height: 25px;
        }
        .style12
        {
            width: 462px;
        }
        .style13
        {
            width: 462px;
            height: 25px;
        }
        .style25
        {
            width: 450px;
            height: 26px;
        }
        .style29
        {
            height: 81px;
        }
        .style41
        {
            width: 500px;
            height: 14px;
        }
        .style43
        {
         width: 462px;
         height: 14px;
     }
        .style44
        {
            width: 300px;
            height: 31px;
            margin-left: 200px;
        }
        .style48
        {
            width: 219px;
            height: 26px;
            margin-left: 200px;
        }
        .style49
        {
            width: 712px;
            height: 26px;
            margin-left: 125px;
        }
        .style50
        {
            width: 1328px;
            height: 26px;
            margin-left: 125px;
        }
        .style51
        {
            height: 26px;
        }
        .style52
        {
            width: 85px;
        }
        .style53
        {
            width: 112px;
        }
        .style54
        {
            width: 19px;
        }
        .style55
     {
         height: 81px;
         width: 85px;
     }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
        
            <uc1:headmenu ID="headmenu1" runat="server" />
        
 </td><td>
    
   

  
    <div>
    <center style="width: 500px"><b>
        <u style="font-family: 'Times New Roman', Times, serif; font-size: large;">&nbsp;Delegate Representative Authority</u></b></center>
    <br />
    <table width="800px" align="center" style="height: 116px">
    <tr>
    
    <td class="style12">Current Representative&nbsp; </td>
    
    <td class="style9">
        <asp:Label ID="lblCurrentRep" runat="server"></asp:Label>
        &nbsp;</td>
    </tr>
    <tr>
    
    <td class="style13">Current Collection Point&nbsp;</td>
    <td class="style11"><asp:Label ID="lblCollectionPoint" runat="server"></asp:Label>
        &nbsp;</td>
    </tr>
    <tr>
    
    <td class="style43">New Collection Point</td>
    <td class="style41">
        <asp:DropDownList 
            ID="ddlNewColPoint" runat="server" 
            Width="285px" AutoPostBack="True" 
            Height="25px">
        <asp:ListItem></asp:ListItem>
       
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
    </tr>
     <tr>
       
       <td class="style43">Employee</td>
        <td class="style41">
            <asp:TextBox ID="txtEmployee" runat="server" Width="221px" 
            ontextchanged="txtEmployee_TextChanged" EnableViewState ="true"></asp:TextBox>
           
         </td>
         <td class="style44">
          <asp:Button ID="btnSearch" runat="server" Text="Search" 
            onclick="btnSearch_Click" Width="82px" />
        </td>
     </tr>
    
    </table>   
    
    <br />
    <table>
   

      <tr>
       <td class="style48"></td>
       <td class="style49">
       
       </td>
       <td class="style50"><asp:Label ID="lblmessage" runat="server" Text="Label" Visible="False" ForeColor="Red" Font-Bold=true Font-Size=Medium></asp:Label> </td>
       <td width="500px" class="style51"></td>
       <td width="500px" class="style51"></td>
       <td width="500px" class="style51">
       </td>
       <td class="style25" >&nbsp;</td> 
      
     </tr>
     
    </table>
    <table > <tr> <td> </td></tr></table>
    <table>
    <tr>   
    <td class="style55"></td> 
    <td width="500px" class="style29">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:gridview id="GVEmpList" runat="server" autogeneratecolumns="False" 
            Width="500px" CellPadding="4"
        ForeColor="#333333" GridLines="None" Height="203px">        
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
     <columns>
     <asp:TemplateField HeaderText="Sr.No"> 
       <ItemTemplate>
          
           <%# Container.DataItemIndex +1 %>
       </ItemTemplate>
     
         <ItemStyle HorizontalAlign="Center" />
     
     </asp:TemplateField>         
     <asp:boundfield datafield="EmpId" HeaderText="Employee ID" >              
         <ItemStyle HorizontalAlign="Center" />
         </asp:boundfield>
     <asp:boundfield datafield="EmpName" HeaderText="Employee Name" >                 
         <ItemStyle HorizontalAlign="Center" />
         </asp:boundfield>
     <asp:TemplateField HeaderText="Assign">
        <ItemTemplate>
             <asp:LinkButton ID="btnselect" Runat="server" OnClick="btnselect_Click" CommandArgument='<%# Eval( "EmpId" ) %>'>Select</asp:LinkButton>
           
        </ItemTemplate>
         <ItemStyle HorizontalAlign="Center" />
      </asp:TemplateField>     
     </columns>  
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
        </td>
     </tr> 
     </table>
     <br />
     <table>
     <tr>
     <td class="style53">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
    <td class="style54">&nbsp;&nbsp;</td>
    <td style ="margin-left:10px" class="style52">
         <asp:Button ID="btnDelegate" runat="server" Text="Delegate" 
             Width="134px" onclick="btnDelegate_Click" />
         </td>
     <td style="margin-left: 40px">
         &nbsp;&nbsp;</td>
         <td>
             &nbsp;</td>
     </tr>
     </table>
    </div>

</td></tr></table>
</asp:Content>
